home *** CD-ROM | disk | FTP | other *** search
- Path: unixg.ubc.ca!news
- From: gordonw@unixg.ubc.ca (Gordon Wong)
- Newsgroups: comp.lang.c
- Subject: HELP. How to convert '0x12' into FF char?
- Date: Mon, 18 Mar 1996 05:40:13 GMT
- Organization: The University of British Columbia
- Message-ID: <4iissm$s76@nntp.ucs.ubc.ca>
- NNTP-Posting-Host: port38.annex2.net.ubc.ca
- X-Newsreader: Forte Free Agent 1.0.81
-
- Let's say we have d='1' and e='2' and the following code segment:
- :
- :
- f='0x';
- strcpy(f,d);
- strcpy(f,e);
-
- f now contains the string '0x12' right?
- How would I write that out as a single ASCII FF character?
- (d,e,f are char)
-
- Please reply here and email also if poss. Thanks for any ideas.
-
- Gordon Wong, gordonw@unixg.ubc.ca
-
- Gordon Wong, gordonw@unixg.ubc.ca
-
-